package part19_状态模式_抽奖;

/**
 * @ClassName: Client
 * @Author: AllenSun
 * @Date: 2020/3/9 21:54
 */
public class Client {
    public static void main(String[] args) {
        //创建活动对象，奖品有一个奖品
        RaffleActivity activity=new RaffleActivity(1);

        for (int i = 0; i < 30; i++) {
            System.out.println("====第"+(i+1)+"次抽奖====");
            //第一步：先点击扣除积分
            activity.debuctMoney();
            //第二步抽奖
            activity.raffle();
        }

    }
}
